package com.vueperson.vueperson.t1.CreationalPattern.BuildingPattern.DirectorTest;


import com.vueperson.vueperson.t1.CreationalPattern.BuildingPattern.BuildActor.Actor;

public class Client {
    public static void main(String[] args) {
        ActorBuilder ab;
        ab= (ActorBuilder) XMLUtil.getBean();

        Actor actor;
        /**
         * 省略Director
         */
//        actor=ActorBuilder.construct(ab);
        /**
         * 将construct()方法中的参数去掉
         */

        actor=ab.construct();

        System.out.println(actor.toString());

    }
}
